import { ref } from 'vue'
import { getHomeNoticesApi } from '@/api'
export function useNoticeData() {
    const  noticeList = ref([])

    function getNotices() {
        getHomeNoticesApi().then(res =>{
            noticeList.value = res.map(item => item.content)
        })
    }
    return {
        noticeList,
        getNotices
    }
}